// Only change code below this line
function countdown(n) {
  if (n < 1) {
    return [];
  } else {
    const newArray = countdown(n - 1);
    newArray.unshift(n);
    // newArray.reverse();
    // 1  2       3
    // [1] [2,1]  [2,1,3]
    return newArray;
  }
}
console.log(countdown(10));
// Only change code above this line
